<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<meta name='keywords' content="">
<meta name='description' content="">
<meta name='robots' content='all'>
<link rel="stylesheet" href="__APP__/resources/css/base.css" type="text/css" charset="utf-8"> 
<link rel="stylesheet" href="__APP__/resources/css/main.css" type="text/css" charset="utf-8"><?php echo ($jcrop_css); ?>
<script src="__APP__/resources/js/jquery-1.5.1.js"></script>
<script src="__APP__/resources/js/artDialog.min.js"></script>
<script src="__APP__/resources/js/plug.min.js"></script><?php echo ($jcrop_js); ?>
<script type="text/javascript">
$(function(){
    $('#login').click(function(){
        art.dialog.load("<?php echo U('member/login');?>", {
            lock:true,
            id : 'login_dialog',
            width:300,
            height:100,
            title: '用户登录'
        }, true);
    })
    $('#reg').click(function(){
        art.dialog.load("<?php echo U('member/register');?>", {
            lock:true,
            id : 'login_dialog',
            title: '用户注册'
        }, true);
    })

    $('#cancel_btn').live('click',function(){
        art.dialog.get('login_dialog').close();
    })
    $('#login_btn').live('click',function(){
        $('#login_btn').attr('disabled',true);
        var err = new Array();
        err[1] = '用户不存在。';
        err[2] = '密码错误。';
        err[3] = '没有万能帐号...';
        //$('#login_btn').attr('disabled',true);
        $.post("<?php echo U('member/loginPost');?>", "username="+$("#username").val()+"&password="+$("#password").val(), function(txt){
            if(typeof(err[txt]) != 'undefined'){
                $('#tip').html(err[txt]);
                $('#login_btn').attr('disabled',false);
            }else{
                $('#tip').html('登录成功');
                $('#login_btn').attr('disabled',false);
                window.location.reload();
            }
        },'json' );         
    })
})
</script>
</head>
<body>

<div class="container">
	<!-- header -->
	<div class="header">
		<h1>
			<a href="http://www.souvo.com" title="搜我网">搜我网</a>
			<em>在这里展示自己的人已经有<span>54456</span>位了！</em>
		</h1>
		<div class="login">
        <?php if ($user) { ?>
            <span>欢迎:<?php echo ($user["user_info"]["nickname"]); ?></span><a href="<?php echo U('memcp/infoset');?>" title="设置">设置</a>　<a href="#" title="消息">消息</a><a href="<?php echo U('member/logout');?>" title="退出">退出</a>
        <?php }else{ ?>
			<a  title="登录" id="login">登录</a>
			<a href="javascript:void(0)" title="注册" id="reg">注册</a>
        <?php } ?>
        </div>
		<div class="search">
			<span class="city"><em>选择城市</em><q></q></span>
			<span class="schCont">
				<input type="text" class="text" />
				<input type="submit" class="schBtn" value="搜索" />
			</span>
			<input type="hidden" name="city"/>
		</div>
		<!-- 导航 -->
		<div class="navi">
			<ul>
                <?php if ($user) { $url = 'people/'.$user['mid']; $people_nav_curr = 'people_'.$user['mid']; ?>
                    <li<?php echo ($currTopNav['main_index']); ?>><a href="<?php echo U('main/index');?>"><em>首页</em></a></li>
                    <li<?php echo ($currTopNav["memcp_collect"]); ?>><a href="<?php echo U('memcp/collect');?>"><em>我的收藏</em></a></li>
                    <li<?php echo ($currTopNav["people_explore"]); ?>><a href="<?php echo U('people/explore');?>"><em>可能感兴趣的</em></a></li>
                    <li<?php echo ($currTopNav["$people_nav_curr"]); ?>><a href="<?php echo U($url);?>"><em>个人主页</em></a></li>
                <?php }else{ ?>
                    <li<?php echo ($currTopNav["index"]); ?>><a href="<?php echo U('main/index');?>"><em>首页</em></a></li>
                    <li<?php echo ($currTopNav["people"]); ?>><a href="<?php echo U('people/index');?>"><em>人物</em></a></li>
                    <li<?php echo ($currTopNav["blog"]); ?>><a href="<?php echo U('main/blog');?>"><em>搜我志</em></a></li>
                <?php } ?>
			</ul>

			<div class="share">
				分享到：
				<a href="javascript:void(0)" class="goQQ" title="分享到QQ空间">QQ空间</a>
				<a href="javascript:void(0)" class="goSina" title="分享到新浪微薄">新浪微薄</a>
				<a href="javascript:void(0)" class="goKaixin" title="分享到开心网">开心网</a>
				<a href="javascript:void(0)" class="goRenren" title="分享到人人网">人人网</a>
				<a href="javascript:void(0)" class="goDouban" title="分享到豆瓣">豆瓣</a>
			</div>
		</div>
	</div>
    <!-- header End -->
    <div>
        <?php if ($user && in_array(ACTION_NAME,array('infoset','phtoupload','link'))){ ?>
        <a href="<?php echo U('memcp/infoset');?>" title="帐号设置">帐号设置</a> | <a href="<?php echo U('memcp/photoUpload');?>" title="头像设置">头像设置</a> | <a href="linkSet" title="链接管理">链接管理</a>
        <?php } ?>
    </div>
	<div class="main">
        <form method="post" action="<?php echo U('memcp/infoset');?>"></p>
            <p>帐号:<input type="text" value="<?php echo ($user['username']); ?>" disabled="disabled"/></p>
            <p>呢称:<input type="text" name="nickname" value="<?php echo ($data['nickname']) ? $data['nickname'] : ''; ?>" /><span>4-20个字符，支持中英文、数字、"_"或减号</span></p>
            <p>所在地区:
            <select id="province" name="province">
                <?php if(is_array($pro_city)): $i = 0; $__LIST__ = $pro_city;$_count = count($__LIST__);if( $_count==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($key); ?>" <?php echo ($pro_curr[$key]); ?>><?php echo ($vo['province']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
            <select id="city" name="city">
                <?php if(is_array($pro_city[$data['province']]['city'])): $i = 0; $__LIST__ = $pro_city[$data['province']]['city'];$_count = count($__LIST__);if( $_count==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($key); ?>" <?php echo ($city_curr[$key]); ?>><?php echo ($vo); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
             </select>
            </p>
            <p>QQ:<input type="text" name="qq" value="<?php echo ($data['qq']) ? $data['qq'] : ''; ?>" /></p>
            <p>MSN:<input type="text" name="msn" value="<?php echo ($data['msn']) ? $data['msn'] : ''; ?>" /></p>
            <p>GTALK:<input type="text" name="gtalk" value="<?php echo ($data['gtalk']) ? $data['gtalk'] : ''; ?>" /></p>
            <p>SKYPE:<input type="text" name="skype" value="<?php echo ($data['skype']) ? $data['skype'] : ''; ?>" /></p>
            <p>YY:<input type="text" name="yy" value="<?php echo ($data['yy']) ? $data['yy'] : ''; ?>" /></p>
            <p>一段话介绍:<textarea name="about"><?php echo ($data['about']) ? $data['about'] : ''; ?></textarea></p>
            <p><input type="submit" name="submit" value="submit" /></p>
        </form>
        <form method="post" action="<?php echo U('member/updatepass');?>"></p>
            <p>旧密码:<input type="text" name="old_password"/></p>
            <p>新密码:<input type="text" name="password"/></p>
            <p>重复新密码:<input type="text" name="password_again" /></p>
            <p><input type="submit" name="submit" value="submit" /></p>
        </form>
	</div>
	<!-- main End -->
	<!-- footer -->
	<div class="clearFloat"></div>
	<div class="footer">
		<div class="serv">
			<dl>
				<dt>关于</dt>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
			</dl>

			<dl>
				<dt>合作</dt>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
			</dl>

			<dl>
				<dt>服务/帮助</dt>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
			</dl>

			<dl>
				<dt>其他</dt>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
				<dd><a href="###" title="" target="_blank">什么搜我</a></dd>
			</dl>
			<q></q>
		</div>
		<p class="siteInfo">
			搜我网(http://www.souvo.com)版权所有 &copy; 2002-2011
		</p>
	</div>
	<!-- footer End -->


</div>
</body>
</html>